package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 盲盒订单对象 tb_user_blind_box_order
 * 
 * @author hyx
 * @date 2024-11-22
 */
public class CwUserBlindBoxOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单 ID */
    private Long orderId;

    /** 用户 ID */
    @Excel(name = "用户 ID")
    private Long userId;

    /** 盲盒 ID */
    @Excel(name = "盲盒 ID")
    private Long blindBoxId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long purchaseQuantity;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal totalAmount;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBlindBoxId(Long blindBoxId) 
    {
        this.blindBoxId = blindBoxId;
    }

    public Long getBlindBoxId() 
    {
        return blindBoxId;
    }
    public void setPurchaseQuantity(Long purchaseQuantity) 
    {
        this.purchaseQuantity = purchaseQuantity;
    }

    public Long getPurchaseQuantity() 
    {
        return purchaseQuantity;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("blindBoxId", getBlindBoxId())
            .append("purchaseQuantity", getPurchaseQuantity())
            .append("orderTime", getOrderTime())
            .append("orderStatus", getOrderStatus())
            .append("paymentMethod", getPaymentMethod())
            .append("totalAmount", getTotalAmount())
            .toString();
    }
}
